package com.horsen.service.edu.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.horsen.service.base.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 讲师 实体
 *
 * @author Horsen
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_teacher")
@ApiModel("讲师")
public class Teacher extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("讲师姓名")
    private String name;

    @ApiModelProperty("讲师资历")
    private String career;

    @ApiModelProperty("授课风格")
    private String style;

    @ApiModelProperty("头衔(1初级讲师,2中级讲师,3高级讲师,4首席讲师)")
    private Integer level;

    @ApiModelProperty("讲师头像")
    private String avatar;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("入驻时间")
    @JsonFormat(pattern = "yyyy.MM.dd")
    private Date joinDate;

}
